package kr.hkit.PowerJava.chapter12;

public class Rectangle extends Shape{
    private int width;
    private int height;
    	
	
	@Override
	public void draw() {
	  System.out.println("사각형을 그림. ");
		
	}
	public static void main(String[] args){
		Shape[] arrShape = new Shape[2];
		arrShape[0] = new Shape();
		arrShape[1] = new Triangle();
	
	}
	

abstract class Triangle extends Shape{
}
@Override
public void draw1() {
  System.out.println("삼각형을 그림. ");
}

}